import 'package:flutter/widgets.dart';

/// Hero动画参数，如果不需要Hero动画，则传空
class HeroAttributes {
  const HeroAttributes({
    @required this.tag,
    this.createRectTween,
    this.flightShuttleBuilder,
    this.placeholderBuilder,
    this.transitionOnUserGestures = false,
  }) : assert(tag != null);

  final Object tag;

  final CreateRectTween createRectTween;

  final HeroFlightShuttleBuilder flightShuttleBuilder;

  final HeroPlaceholderBuilder placeholderBuilder;

  final bool transitionOnUserGestures;
}
